import axios from '@/request/http'
import { commonOutDTO, pageCommonInputDTO, pageCommonOutDTO } from '@/api/common.d'
import { AjsdjlQueryParam, AjsdjlQueryResult, UnlocQueryParam } from './ajjcsd-dto'
export default class ajjcdService {
  // 获取案件锁定记录
  static queryAjsdjl(
    data: pageCommonInputDTO<AjsdjlQueryParam>,
  ): Promise<commonOutDTO<pageCommonOutDTO<AjsdjlQueryResult[]>>> {
    return axios.post('/api/gdgl/queryAjsdjl', data)
  }

  // 案件加锁
  static querylockAj(data: UnlocQueryParam): Promise<commonOutDTO<any>> {
    return axios.post('/api/gdgl/lockAj', data)
  }

  // 案件解锁
  static queryUnlockAj(data: UnlocQueryParam[]): Promise<commonOutDTO<any>> {
    return axios.post('/api/gdgl/unlockAj', data)
  }
}
